package day03;

import java.util.Scanner;

public class HomeWorkDay03 {
    public static void main(String[] args) {
        //第一题========================================================
        int a =6,b=3;
        int max=a>b?a:b;
        System.out.println(max);

        if (a>b){
            System.out.println(a);
        }else{
            System.out.println(b);
        }

        //第二题=======================================================
        int year=2024;
       if (year%4==0 && year%100!=0){
            System.out.println("此年为闰年");
        }else if (year%400==0){
            System.out.println("此年为闰年");
        }else{
            System.out.println("此年是平年");
        }
       //============================================================
        if ((year%4==0 && year%100!=0)||year%400==0){
            System.out.println("此年为闰年");
        }else {
            System.out.println("此年是平年");
        }
        //第三题============================================================
        int score=99;
        if(score>=100||score<=0){
            System.out.println("成绩不合法");
        }else if(score>89){
            System.out.println("优秀");
        }else  if(score>79){
            System.out.println("不错");
        }else if(score>59){
            System.out.println("刚及格");
        }else{
            System.out.println("不及格");
        }



    }
}
